#include <memory>
#include "tcpserver.h"
#include "Daemon.h"

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        std::cout << "Usage: " << argv[0] << " port[1024+]" << std::endl;
        return 0;
    }
    uint16_t port = atoi(argv[1]);
    std::unique_ptr<tcpserver> server(new tcpserver(port));
    server->init();
    //Daemon();
    server->run();

    return 0;
}